package meterMonitor.controller;

import meterMonitor.framework.auth.AuthorityType;
import meterMonitor.framework.auth.FireAuthority;
import meterMonitor.util.ResourceConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * 实时controller
 */
@RequestMapping("monitor")
@RestController
public class MonitorController extends BaseController {
    public static final Logger logger = LoggerFactory.getLogger(MonitorController.class);
    @Autowired
    protected ResourceConfig resourceConfig;

    /**
     * 首页数据展示
     *
     * @param mv
     * @param areaId
     * @return
     */
    @RequestMapping("index.do")
    @FireAuthority(authorityTypes = AuthorityType.Query)
    private ModelAndView index(ModelAndView mv, String areaId) {
        return mv;
    }
}
